# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=nodejs-less
pkgver=4.1.1
pkgrel=0
pkgdesc="A standalone compiler for the LESS CSS language"
url="https://lesscss.org"
arch="noarch !riscv64" # blocked by nodejs
license="AGPL-3.0-or-later"
depends="nodejs"
makedepends="npm"
source="https://registry.npmjs.org/less/-/less-$pkgver.tgz"
options="!check"
builddir="$srcdir/package"

unpack() {
	# skipping unpacking, installing archive directly
	verify
}

package() {
	npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/less-$pkgver.tgz
	find "$pkgdir/usr/lib/node_modules/root" -delete
	chown -R root "$pkgdir"
}

sha512sums="
c34f68f2d6453d3841b1c9797741a0a7745caca228b81a10b1c9ce320147de7e55de437f09718735f0a444fb71264ea72abc835da57d6872cae79457b87e2c03  less-4.1.1.tgz
"
